<!DOCTYPE html>
<html lang="en">
<head>
    <{include file="header.html"}>
    <title>组卷管理-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
</head>
<body>
<div class="wrap">
    <!--star left-->
    <div class="column">
        <{include file="left_menu.html"}>
    </div>
    <div id="ContMianBox">
        <!--star子栏目-->
        <div class="sub-colum">
            <div class="tit"><{$left_menu_min.menu}></div>
            <ul>
                <{foreach from=$left_menu_min.list item=item}>
                <li <{if $item['url'] == $left_menu_min.curr}>class="curr"<{/if}>><a href="<{$item['url']}>"><{$item['name']}></a></li>
                <{/foreach}>
            </ul>
        </div>
        <!--end子栏目-->
        <!--end left-->
        <div class="container narrow">
            <!--star conter-->
            <div class="cetContent">
                <div class="tit p-lr20">
                    <span class="curr">题目预览</span>
                </div>
                <!--star内容区域-->
                <div class="mainScroll">
                    <div class="mainContainer line-all">
                        <!--star tabMainCont-->
                        <form class="form-horizontal layui-form layui-form-pane" method="post" action="/tiku/save_test_volume">
							<{foreach from=$test_volume_data item=item key=key}>
							<input type="hidden" name="<{$key}>" value="<{$item}>" >
							<{/foreach}>
							<br/><br/>
							<{foreach from=$topic_list item=topic key=tkey}>
								<blockquote class="layui-elem-quote" style="font-size: 20px;">
								<{if $tkey == 1}>单选题<{/if}>
								<{if $tkey == 2}>多选题<{/if}>
								<{if $tkey == 3}>判断题<{/if}>
								<{if $tkey == 4}>计算分析题<{/if}>
								<{if $tkey == 7}>不定向选择题<{/if}>
								<{if $tkey == 8}>名词解释<{/if}>
								<{if $tkey == 9}>简答题<{/if}>
								 共<{$topic|count}>题
								</blockquote>
								
						  		<{foreach from=$topic item=topic_info name=foo}>
					  			<blockquote class="layui-elem-quote layui-quote-nm">
									<h1 style="font-size: 16px;font-weight: bold; "><{$smarty.foreach.foo.iteration}>.<{$topic_info.subject_text|strip_tags}></h1>
									<hr>
									<{assign var="right_topics" value=""}>
									<{if $tkey == 1 OR $tkey == 2 OR $tkey == 3}>
									<{foreach from=$topic_info.result item=result key=key}>
										<p style="padding:6px 0;">
										<{if $tkey == 1 || $tkey == 3}><input type="radio"  <{if $result.is_right == 1}>checked<{/if}> title="<{$letter[$key]}>.<{$result.answer_text}>"/><{/if}>
										<{if $tkey == 2}><input type="checkbox" disabled <{if $result.is_right == 1}>checked<{/if}>/> <{$letter[$key]}>. <{$result.answer_text}><{/if}>
											<{if $result.is_right == 1}>
												<{$right_topics = $right_topics|cat:$letter[$key]|cat:"、"}>
											<{/if}>
										</p>
									<{/foreach}>
									<p style="color:red; padding:16px 0;"><span style="font-weight: bold;color: #000;">正确答案：</span><{$right_topics|mb_substr:0:-1}></p>
									<{else if $tkey == 4}>
									<{foreach from=$topic item=topic_data key=key}>
										<{foreach from=$topic_data.result key=k item=item}>
											<{foreach from=$item key=k item=analys_item}>
											<div class="layui-tab-item layui-show">
												<div class="layui-form-item layui-form-text">
													<div class="layui-input-block">
														<{$k+1}>、<{$analys_item.subject_text|strip_tags}>
													</div>
												</div>
												
												<{if $analys_item.analys_type == 1}>
												<div class="layui-form-item tk_answer">
													<div class="layui-inline">
														<label class="layui-form-label">子提干答案</label>
														<div class="layui-input-block">
															<input type="text" name="analys[<{$analys_item.answer_list[0].aid}>][<{$analys_item.answer_list[0].id}>][answer_text]" value="<{$analys_item.answer_list[0].answer_text}>" disabled autocomplete="off" class="layui-input" style="width: 500px;">
														</div>
													</div>
												</div>
												<{else}>
												<{foreach from=$analys_item.answer_list key=k item=analys_result}>
												<div class="layui-form-item fl_answer">
													<div class="layui-inline">
														<label class="layui-form-label">借贷方向</label>
														<div class="layui-input-block">
															<select disabled name="analys[<{$analys_result.aid}>][<{$analys_result.id}>][type]">
																<option value="1" <{if $analys_result.type == 1}>selected<{/if}>>借</option>
																<option value="2" <{if $analys_result.type == 2}>selected<{/if}>>贷</option>
															</select>
														</div>
													</div>
													<div class="layui-inline">
														<label class="layui-form-label">选择科目</label>
														<div class="layui-input-block">
															<input type="hidden" class="accounts" name="analys[<{$analys_result.aid}>][<{$analys_result.id}>][topic_subject_id]" >
															<input type="text" autocomplete="off" style="width:200px;" class="layui-input" value="<{$analys_result.topic_subject_title}>" disabled onclick="choice_accounts(this)">
														</div>
													</div>
													<div class="layui-inline">
														<label class="layui-form-label">答案</label>
														<div class="layui-input-block">
															<input type="text" style="width:145px;" name="analys[<{$analys_result.aid}>][<{$analys_result.id}>][answer_text]" value="<{$analys_result.answer_text}>" disabled autocomplete="off" class="layui-input">
														</div>
													</div>
												</div>
												<{/foreach}>
												<{/if}>
										    </div>
										<{/foreach}>
										<{/foreach}>
									<{/foreach}>
									<{else if $tkey == 7}>
									<{foreach from=$topic item=topic_data key=key}>
										<{foreach from=$topic_data.result key=k item=item}>
											<{foreach from=$item key=k item=analys_item}>
											<div class="layui-tab-item layui-show">
												<div class="layui-form-item layui-form-text">
													<div class="layui-input-block">
														<{$k+1}>、<{$analys_item.subject_text|strip_tags}>
													</div>
												</div>
												
												<{foreach from=$analys_item.answer_list key=k item=bdx_result}>
												<div class="layui-form-item">
													<div class="layui-inline">
														<label class="layui-form-label">题目答案<{$letter[$k]}></label>
														<div class="layui-input-block">
															<input type="text" lay-verify="title" disabled value="<{$bdx_result.answer_text}>" autocomplete="off" class="layui-input" style="width: 500px;">
														</div>
													</div>
													<div class="layui-inline">
														<input type="checkbox" value="1" <{if $bdx_result.is_right == 1}>checked<{/if}> title="正确答案" disabled>
													</div>
												</div>
												<{/foreach}>
										    </div>
										<{/foreach}>
										<{/foreach}>
									<{/foreach}>
									<{/if}>
									<fieldset class="layui-elem-field" style="background-color: #fafafa;color: #999;">
									  	<legend>答题解析</legend>
									  	<div class="layui-field-box">
									    <p style="font-weight: bold;"><{$topic_info.analysis}></p>
									  	</div>
									</fieldset>
								</blockquote>
								<{/foreach}>
							<{/foreach}>
							<button class="layui-btn" lay-submit="" >保存</button>
						</form>
                        <!--star会员管理-->
                    </div>
                    <!--end tabMainCont-->
                </div>
            </div>
        </div>
    </div>
</div>
<{include file="footer.html"}>
</body>
</html>
